﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using INSTA.BankApplication.DAL;
using NUnit.Framework;

namespace INSTA.BankApplication.DAL.Tests
{
    [TestFixture]
    public class Test_FieldAttribute
    {
        [Test]
        public void Test_Constructor_OneParameter()
        {
            var fieldAttribute = new FieldAttribute("toto");

            bool result = fieldAttribute.FieldName == "toto" &&
                          fieldAttribute.IsPrimaryKey == false;

            Assert.IsTrue(result);
        }

        [Test]
        public void Test_Constructor_TwoParameters()
        {
            var fieldAttribute = new FieldAttribute("toto", true);

            bool result = fieldAttribute.FieldName == "toto" &&
                          fieldAttribute.IsPrimaryKey == true;

            Assert.IsTrue(result);
        }
    }
}
